import request from '@/utils/request'

// 查询招标类型列表
export function listProjecttype(query) {
  return request({
    url: '/system/projecttype/list',
    method: 'get',
    params: query
  })
}

export function listsProjecttype(query) {
  return request({
    url: '/system/projecttype/lists',
    method: 'get',
    params: query
  })
}

// 查询招标类型详细
export function getProjecttype(id) {
  return request({
    url: '/system/projecttype/' + id,
    method: 'get'
  })
}

// 新增招标类型
export function addProjecttype(data) {
  return request({
    url: '/system/projecttype',
    method: 'post',
    data: data
  })
}

// 修改招标类型
export function updateProjecttype(data) {
  return request({
    url: '/system/projecttype',
    method: 'put',
    data: data
  })
}

// 删除招标类型
export function delProjecttype(id) {
  return request({
    url: '/system/projecttype/' + id,
    method: 'delete'
  })
}
